this._select(n);
}
- _windowActivated(thumbnailList, n) {
+ _windowActivated(thumbnailSwitcher, n) {
let appIcon = this._items[this._selectedIndex];
Main.activateWindow(appIcon.cachedWindows[n]);
this.fadeAndDestroy();
}
- _windowEntered(thumbnailList, n) {
+ _windowEntered(thumbnailSwitcher, n) {
if (!this.mouseActive)
return;
this._select(this._selectedIndex, n);
}
- _windowRemoved(thumbnailList, n) {
+ _windowRemoved(thumbnailSwitcher, n) {
let appIcon = this._items[this._selectedIndex];
if (!appIcon)
return;
}
_createThumbnails() {
- this._thumbnails = new ThumbnailList(this._items[this._selectedIndex].cachedWindows);
+ this._thumbnails = new ThumbnailSwitcher(this._items[this._selectedIndex].cachedWindows);
this._thumbnails.connect('item-activated', this._windowActivated.bind(this));
this._thumbnails.connect('item-entered', this._windowEntered.bind(this));
this._thumbnails.connect('item-removed', this._windowRemoved.bind(this));
return;
let mode = this._settings.get_enum('app-icon-mode');
- this._switcherList = new WindowList(windows, mode);
+ this._switcherList = new WindowSwitcher(windows, mode);
this._items = this._switcherList.icons;
}
}
// We override SwitcherList's highlight() method to also deal with
- // the AppSwitcher->ThumbnailList arrows. Apps with only 1 window
+ // the AppSwitcher->ThumbnailSwitcher arrows. Apps with only 1 window
// will hide their arrows by default, but show them when their
// thumbnails are visible (ie, when the app icon is supposed to be
// in justOutline mode). Apps with multiple windows will normally
}
});
-var ThumbnailList = GObject.registerClass(
-class ThumbnailList extends SwitcherPopup.SwitcherList {
+var ThumbnailSwitcher = GObject.registerClass(
+class ThumbnailSwitcher extends SwitcherPopup.SwitcherList {
_init(windows) {
super._init(false);
}
});
-var WindowList = GObject.registerClass(
-class WindowList extends SwitcherPopup.SwitcherList {
+var WindowSwitcher = GObject.registerClass(
+class WindowSwitcher extends SwitcherPopup.SwitcherList {
_init(windows, mode) {
super._init(true);